﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/MasterPage.master" AutoEventWireup="true" 
    CodeFile="JointVenture.aspx.cs" Inherits="Pages_Public_JointVenture" ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageHeader" Runat="Server">
    <style type="text/css">
        .CaptionBox{font-weight:bold; padding:6px 10px;}
        .FormTable{width:70%;}
    </style>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $('#<%=rdbLandOwner.ClientID %>,#<%=rdbDeveloper.ClientID %>').change(function () {
                if ($('#<%=rdbLandOwner.ClientID %>').is(':checked')) {
                    $('#divDeveloper').hide();
                    $('#divLandOwner').show('slow');
                }
                else {
                    $('#divLandOwner').hide();
                    $('#divDeveloper').show('slow');                    
                }
            });
        });
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" Runat="Server">
    <h4 id="h4Heading" runat="server">Joint Venture</h4>
    
    <div id="divMessage" runat="server" visible="false" enableviewstate="false"></div>
    
    <div class="clearboth"></div>
    
    <asp:Panel ID="pnlFormContainer" runat="server" DefaultButton="btnSave">
        <%--JointVenture Information Group Box Start--%>        
        <div class="WizardContainer">
            <div class="StepHeaderContainer">
                <div class="StepHeading">
                    <asp:Label ID="lblFormTitle" runat="server" Text="Joint Venture"></asp:Label>
                </div>
                <div class="StepSubHeading"><asp:Label ID="lblFormSubTitle" runat="server" Text="If you are interested to Joint Venture with any other developer or land owner please submit your requirements below or Contact Us."></asp:Label></div>
            </div>
            <div class="StepBody">
                <div style="margin-bottom:10px;">
                    <asp:RadioButton ID="rdbLandOwner" runat="server" Checked="true" GroupName="VentureType" Text="Land Owner" />
                    <asp:RadioButton ID="rdbDeveloper" runat="server" GroupName="VentureType" Text="Developer"/>
                </div>
                <%--Land Owner Form Start--%>
                <div id="divLandOwner">
                    <div class="CaptionBox">Personal Information</div>
                    <table class="FormTable" cellpadding="3" cellspacing="0">
                        <colgroup>
                            <col style="width:27%;" />
                            <col />
                        </colgroup>                        
				        <tr>
					        <td>Name<span class="requiredMark">*</span></td>
					        <td>
						        <asp:TextBox ID="txtLName" MaxLength="250" runat="server"></asp:TextBox>
						        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
							        ControlToValidate="txtLName" SetFocusOnError="true"
							        ErrorMessage="Please Enter a Name." Display="Dynamic"
							        ValidationGroup="SaveLand">
						        </asp:RequiredFieldValidator>
					        </td>
				        </tr>
                        <tr>
					        <td>Address<span class="requiredMark">*</span></td>
					        <td>
						        <asp:TextBox ID="txtLAddress" TextMode="MultiLine" MaxLength="500" runat="server"></asp:TextBox>
						        <asp:RequiredFieldValidator ID="rfvLAddress" runat="server"
							        ControlToValidate="txtLAddress" SetFocusOnError="true"
							        ErrorMessage="Please Enter an Address." Display="Dynamic"
							        ValidationGroup="SaveLand">
						        </asp:RequiredFieldValidator>
					        </td>
				        </tr>
                        <tr>
					        <td>Phone<span class="requiredMark">*</span></td>
					        <td>
						        <asp:TextBox ID="txtLPhone" MaxLength="50" runat="server"></asp:TextBox>
						        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
							        ControlToValidate="txtLPhone" SetFocusOnError="true"
							        ErrorMessage="Please Enter a Phone." Display="Dynamic"
							        ValidationGroup="SaveLand">
						        </asp:RequiredFieldValidator>
					        </td>
				        </tr>
				        <tr>
					        <td>Fax</td>
					        <td>
						        <asp:TextBox ID="txtLFax" MaxLength="50" runat="server"></asp:TextBox>
					        </td>
				        </tr>
				        <tr>
					        <td>Email<span class="requiredMark">*</span></td>
					        <td>
						        <asp:TextBox ID="txtLEmail" MaxLength="100" runat="server"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                    ControlToValidate="txtLEmail" Display="Dynamic" SetFocusOnError="true"
                                    ErrorMessage="Please enter a valid Email address."
                                    ValidationGroup="SaveLand">
                                </asp:RegularExpressionValidator>

                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
							        ControlToValidate="txtLEmail" SetFocusOnError="true"
							        ErrorMessage="Please Enter a Email." Display="Dynamic"
							        ValidationGroup="SaveLand">
						        </asp:RequiredFieldValidator>

					        </td>
				        </tr>
                    </table>

                    <div class="CaptionBox" style="margin-top:10px;">Land Information</div>
                    <table class="FormTable" cellpadding="3" cellspacing="0">
                        <colgroup>
                            <col style="width:27%;" />
                            <col />
                        </colgroup>
                        <tr>
					        <td>City<span class="requiredMark">*</span></td>
					        <td>
						        <asp:DropDownList ID="ddlLCity" runat="server"></asp:DropDownList>
						        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
							        ControlToValidate="ddlLCity" SetFocusOnError="true"
							        ErrorMessage="Please Select a City." Display="Dynamic"
							        ValidationGroup="SaveLand">
						        </asp:RequiredFieldValidator>
					        </td>
				        </tr>
				        <tr>
					        <td>Land Location<span class="requiredMark">*</span></td>
					        <td>
						        <asp:TextBox ID="txtLPreferredLocation" MaxLength="150" runat="server"></asp:TextBox>
						        <asp:RequiredFieldValidator ID="rfvLPreferredLocation" runat="server"
							        ControlToValidate="txtLPreferredLocation" SetFocusOnError="true"
							        ErrorMessage="Please Enter Land Location." Display="Dynamic"
							        ValidationGroup="SaveLand">
						        </asp:RequiredFieldValidator>
					        </td>
				        </tr>
				        <tr>
					        <td>Land Size (Katha)<span class="requiredMark">*</span></td>
					        <td>
						        <asp:TextBox ID="txtLLandSize" MaxLength="50" runat="server"></asp:TextBox>
						        <asp:RequiredFieldValidator ID="rfvLLandSize" runat="server"
							        ControlToValidate="txtLLandSize" SetFocusOnError="true"
							        ErrorMessage="Please Enter a Land Size." Display="Dynamic"
							        ValidationGroup="SaveLand">
						        </asp:RequiredFieldValidator>
					        </td>
				        </tr>
                        <tr>
					        <td>Property Description</td>
					        <td>
						        <asp:TextBox ID="txtLPropertyDescription" TextMode="MultiLine" MaxLength="1000" runat="server"></asp:TextBox>
					        </td>
				        </tr>
                        <tr>
					        <td>Preferable Ratio</td>
					        <td>
						        <table cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td><asp:DropDownList ID="ddlLRationOwner" runat="server"></asp:DropDownList></td>
                                        <td style="padding:0px 2px;">/</td>
                                        <td><asp:DropDownList ID="ddlLRationDeveloper" runat="server"></asp:DropDownList></td>
                                        <td style="padding-left:10px;">Land Owner / Developer</td>
                                    </tr>                                    
                                </table>
					        </td>
				        </tr>
                    </table>

                    <div class="StepButtonContainer">
                        <asp:Button ID="btnSaveLand" runat="server" Text="Send" ValidationGroup="SaveLand" OnClick="btnSave_Click" />                                   
                    </div>
                </div>
                <%--Land Owner Form End--%>

                <%--Developer Form Start--%>
                <div id="divDeveloper" style="display:none;">
                    <div class="CaptionBox">Developers Information</div>
                    <table class="FormTable" cellpadding="3" cellspacing="0">
                        <colgroup>
                            <col style="width:31%;" />
                            <col />
                        </colgroup>
				        <tr>
					        <td>Company Name<span class="requiredMark">*</span></td>
					        <td>
						        <asp:TextBox ID="txtCustomerName" MaxLength="250" runat="server"></asp:TextBox>
						        <asp:RequiredFieldValidator ID="rfvCustomerName" runat="server"
							        ControlToValidate="txtCustomerName" SetFocusOnError="true"
							        ErrorMessage="Please Enter a Company Name." Display="Dynamic"
							        ValidationGroup="SaveInfo">
						        </asp:RequiredFieldValidator>
					        </td>
				        </tr>
				        <tr>
					        <td>Address<span class="requiredMark">*</span></td>
					        <td>
						        <asp:TextBox ID="txtAddress" TextMode="MultiLine" MaxLength="500" runat="server"></asp:TextBox>
						        <asp:RequiredFieldValidator ID="rfvAddress" runat="server"
							        ControlToValidate="txtAddress" SetFocusOnError="true"
							        ErrorMessage="Please Enter a Address." Display="Dynamic"
							        ValidationGroup="SaveInfo">
						        </asp:RequiredFieldValidator>
					        </td>
				        </tr>
				        <tr>
					        <td>Phone<span class="requiredMark">*</span></td>
					        <td>
						        <asp:TextBox ID="txtPhone" MaxLength="50" runat="server"></asp:TextBox>
						        <asp:RequiredFieldValidator ID="rfvPhone" runat="server"
							        ControlToValidate="txtPhone" SetFocusOnError="true"
							        ErrorMessage="Please Enter a Phone." Display="Dynamic"
							        ValidationGroup="SaveInfo">
						        </asp:RequiredFieldValidator>
					        </td>
				        </tr>
				        <tr>
					        <td>Fax</td>
					        <td>
						        <asp:TextBox ID="txtFax" MaxLength="50" runat="server"></asp:TextBox>
					        </td>
				        </tr>
				        <tr>
					        <td>Email<span class="requiredMark">*</span></td>
					        <td>
						        <asp:TextBox ID="txtEmail" MaxLength="100" runat="server"></asp:TextBox>

                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                    ControlToValidate="txtEmail" Display="Dynamic" SetFocusOnError="true"
                                    ErrorMessage="Please enter a valid Email address."
                                    ValidationGroup="SaveInfo">
                                </asp:RegularExpressionValidator>

                                <asp:RequiredFieldValidator ID="rfvEmail" runat="server"
							        ControlToValidate="txtEmail" SetFocusOnError="true"
							        ErrorMessage="Please Enter a Email." Display="Dynamic"
							        ValidationGroup="SaveInfo">
						        </asp:RequiredFieldValidator>

					        </td>
				        </tr>
				        <tr>
					        <td>Preferable City<span class="requiredMark">*</span></td>
					        <td>
						        <asp:DropDownList ID="ddlPreferredCityID" runat="server"></asp:DropDownList>
						        <asp:RequiredFieldValidator ID="rfvPreferredCityID" runat="server"
							        ControlToValidate="ddlPreferredCityID" SetFocusOnError="true"
							        ErrorMessage="Please Select a Preferable City." Display="Dynamic"
							        ValidationGroup="SaveInfo">
						        </asp:RequiredFieldValidator>
					        </td>
				        </tr>
				        <tr>
					        <td>Preferable Area<span class="requiredMark">*</span></td>
					        <td>
						        <asp:TextBox ID="txtPreferredLocation" MaxLength="150" runat="server"></asp:TextBox>
						        <asp:RequiredFieldValidator ID="rfvPreferredLocation" runat="server"
							        ControlToValidate="txtPreferredLocation" SetFocusOnError="true"
							        ErrorMessage="Please Enter a Preferable Area." Display="Dynamic"
							        ValidationGroup="SaveInfo">
						        </asp:RequiredFieldValidator>
					        </td>
				        </tr>
				        <tr>
					        <td>Preferred Land Size (Katha)<span class="requiredMark">*</span></td>
					        <td>
						        <asp:TextBox ID="txtLandSize" MaxLength="50" runat="server"></asp:TextBox>
						        <asp:RequiredFieldValidator ID="rfvLandSize" runat="server"
							        ControlToValidate="txtLandSize" SetFocusOnError="true"
							        ErrorMessage="Please Enter Preferred Land Size." Display="Dynamic"
							        ValidationGroup="SaveInfo">
						        </asp:RequiredFieldValidator>
					        </td>
				        </tr>
                        <tr>
					        <td>Terms &amp; Conditions</td>
					        <td>
						        <asp:TextBox ID="txtPropertyDescription" TextMode="MultiLine" MaxLength="1000" runat="server"></asp:TextBox>
					        </td>
				        </tr>				        
				        <tr>
					        <td>Preferable Ratio<span class="requiredMark">*</span></td>
					        <td>
						        <table cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td><asp:DropDownList ID="ddlRatioOwner" runat="server"></asp:DropDownList></td>
                                        <td style="padding:0px 2px;">/</td>
                                        <td><asp:DropDownList ID="ddlRatioDeveloper" runat="server"></asp:DropDownList></td>
                                        <td style="padding-left:10px;">Land Owner / Developer</td>
                                    </tr>                                    
                                </table>
					        </td>
				        </tr>
                    </table>

                    <div class="StepButtonContainer">
                        <asp:Button ID="btnSave" runat="server" Text="Send" ValidationGroup="SaveInfo" OnClick="btnSave_Click" />                                   
                    </div>
                </div>
                <%--Developer Form End--%>
            </div>            
        </div>
        <%--JointVenture Information Group Box End--%>
   </asp:Panel>

    <asp:Panel ID="pnlSuccessMessage" runat="server" Visible="false">
        <div class="MessageBox" style="margin-bottom:10px;">Joint Venture Request Sent Successfully.</div>
        
        Your Joint Venture request has been submitted successfully. We will contact with you as soon as possible.
        <br /><br />
        Thank you for your Participation

    </asp:Panel>
</asp:Content>

